package cn.ibizlab.odoo.core.odoo_account.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_account.domain.Account_invoice;
import cn.ibizlab.odoo.core.odoo_account.filter.Account_invoiceSearchContext;

/**
 * 实体[Account_invoice] 服务对象接口
 */

public interface IAccount_invoiceService{
     boolean remove(Integer id) ;
     boolean create(Account_invoice account_invoice) ;
     boolean update(Account_invoice account_invoice) ;
     void updateBatch(List<Account_invoice> account_invoices, int batchSize) ;
     Account_invoice get(Integer id) ;
     Account_invoice get(Account_invoice account_invoice) ;
     void createBatch(List<Account_invoice> account_invoices, int batchSize) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;

    /**
     * 查询集合 默认查询
     */
    Page<Account_invoice> searchDefault(Account_invoiceSearchContext context) ;

    /**
     * 根据科目查询
     */
     Page<Account_invoice> selectByOdoo_account(Integer id) ;

    /**
     * 根据帐户现金舍入查询
     */
     Page<Account_invoice> selectByOdoo_cash_rounding(Integer id) ;

    /**
     * 根据税科目调整查询
     */
     Page<Account_invoice> selectByOdoo_fiscal_position(Integer id) ;

    /**
     * 根据贸易条款查询
     */
     Page<Account_invoice> selectByOdoo_incoterms(Integer id) ;

    /**
     * 根据贸易条款查询
     */
     Page<Account_invoice> selectByOdoo_incoterm(Integer id) ;

    /**
     * 根据发票查询
     */
     Page<Account_invoice> selectByOdoo_refund_invoice(Integer id) ;

    /**
     * 根据发票查询
     */
     Page<Account_invoice> selectByOdoo_vendor_bill(Integer id) ;

    /**
     * 根据日记账查询
     */
     Page<Account_invoice> selectByOdoo_journal(Integer id) ;

    /**
     * 根据凭证录入查询
     */
     Page<Account_invoice> selectByOdoo_move(Integer id) ;

    /**
     * 根据付款条款查询
     */
     Page<Account_invoice> selectByOdoo_payment_term(Integer id) ;

    /**
     * 根据销售渠道查询
     */
     Page<Account_invoice> selectByOdoo_team(Integer id) ;

    /**
     * 根据采购 & 账单查询
     */
     Page<Account_invoice> selectByOdoo_vendor_bill_purchase(Integer id) ;

    /**
     * 根据采购订单查询
     */
     Page<Account_invoice> selectByOdoo_purchase(Integer id) ;

    /**
     * 根据公司查询
     */
     Page<Account_invoice> selectByOdoo_company(Integer id) ;

    /**
     * 根据币种查询
     */
     Page<Account_invoice> selectByOdoo_currency(Integer id) ;

    /**
     * 根据银行账户查询
     */
     Page<Account_invoice> selectByOdoo_partner_bank(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Account_invoice> selectByOdoo_commercial_partner(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Account_invoice> selectByOdoo_partner(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Account_invoice> selectByOdoo_partner_shipping(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Account_invoice> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Account_invoice> selectByOdoo_user(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Account_invoice> selectByOdoo_write(Integer id) ;

    /**
     * 根据UTM 营销活动查询
     */
     Page<Account_invoice> selectByOdoo_campaign(Integer id) ;

    /**
     * 根据UTM媒体查询
     */
     Page<Account_invoice> selectByOdoo_medium(Integer id) ;

    /**
     * 根据UTM来源查询
     */
     Page<Account_invoice> selectByOdoo_source(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Account_invoice convert2Domain(cn.ibizlab.odoo.core.client.model.Iaccount_invoice model ,Account_invoice domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Iaccount_invoice convert2Model(Account_invoice domain , cn.ibizlab.odoo.core.client.model.Iaccount_invoice model);

}
